<template>
  <div class="page">
    <!-- 表单 -->

    <a-card>
      <ComVxeTable
        :columns="columns"
        :axios="page"
        :fromItem="fromItem"
        :formData="formData"
        :initialize="initialize"
        @check-view="checkView"
        ref="xTable"
      ></ComVxeTable>
    </a-card>
    <flow-every-modal  ref="modal" @flow-refresh="$refs['xTable'].reset()">
      <!-- v-if="records.visbled" -->
      <template #default="records">
        <flow-check-table
          v-if="records.visbled"
          :sqsx="records.sqsx"
          :cyxpjl="records.cyxpjlList"
          :job="records.job"
          :sqsxid="records.sqsxid"
          :change="records.change"
          :nextNodeDbrList="records.nextNodeDbrList"
          :nextNode="records.nextNode"
        ></flow-check-table>
      </template>
    </flow-every-modal>
  </div>
</template>

<script>
// 待审批
import flowEveryModal from "../components/stayflow/stayflow-every-modal.vue";
import { everydayPage } from "../api/dayPort";
import flowCheckTable from "@/views/everydayCheck/components/stayflow/stayflow-check-table";
import ComVxeTable from "../components/vxe-table/com-vxe-table.vue";
export default {
  props: ["type"],
  components: { ComVxeTable, flowEveryModal, flowCheckTable },
  name: "LoadPage",

  data() {
    return {
      columns: [
        {
          type: "checkbox",
          width:'50'
        },
        {
          type: "seq",
          title: "序号",
          width: "60",
        },
        {
          field: "fqymc",
          title: "企业名称",
          width: "200",
        },
        {
          field: "fsxmc",
          title: "事项名称",
          width: "350",
        },
        {
          field: "fslbh",
          title: "受理编号",
          width: "150",
        },
        {
          field: "fslsj",
          title: "接收时间",
          width: "150",
        },
        {
          field: "fhjmc",
          title: "当前环节",
          width: "150",
        },

        {
          title: "操作",
          width: 200,
          field: "operate",
          slots: { default: "operate", fixed: "right" },
          fixed: "right"
        },
      ],
      queryParams: {},
      config: {},
      data: [],
      allAlign: null,
      formData: {
        fsxmc: "",
        fqymc: "",
        fslsj: "",
        fjzrq: "",
      },
      fromItem: [
        {
          field: "fsxmc",
          title: "事项名称",
          type:'input',
          itemRender: {},
          slots: { default: "name_item" },
        },
        {
          field: "fqymc",
          title: "企业名称",
          type:'input',
          itemRender: {},
          slots: { default: "name_item" },
        },
      ],
      page: everydayPage,
      initialize: {
        fhjmc: "待审批日常考评",
        fblzt: "待办",
      },
    };
  },
  created() {},
  mounted() {},

  methods: {
    checkView(row) {
      //console.log(row);
      this.$refs.modal.handler(row.jobid);
    },
  },
};
</script>

<style lang="less" scoped>
// @import "../assets/table.less";
@import url("../assets/table.less");
</style>
